﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace DNA.Mvc.Publishing
{
    public class NewCommentEvent : EventBase
    {
        public NewCommentEvent(Comment comment)
        {
            this.Comment = comment;
            
            if (this.Comment.IsPingback)
            {
                Name = "Trackback";
            }

            if (this.Comment.IsTrackback)
            {
                Name = "Pingback";
            }
        }

        public Comment Comment { get; private set; }
    }
}
